<template>
    <div id="app" class="task">
        <div class="harnessNav">
            <div>
                <div>
                    任务调度
                </div>
                <div class="userNavT">
                    <!--<div :class="{navSel:isNavSel = tempName.name == 0 ? true : false }">
                        新增任务
                    </div>
                    <div :class="{navSel:isNavSel = tempName.name == 1 ? true : false }">
                        等待任务
                    </div>
                    <div :class="{navSel:isNavSel = tempName.name == 2 ? true : false }">
                        Cron任务
                    </div>
                    <div :class="{navSel:isNavSel = tempName.name == 3 ? true : false }">
                        执行中任务
                    </div>
                    <div :class="{navSel:isNavSel = tempName.name == 4 ? true : false }">
                        异常任务
                    </div>
                    <div :class="{navSel:isNavSel = tempName.name == 5 ? true : false }">
                        任务列表
                    </div>-->
                </div>
            </div>
        </div>
        <div class="harnDeta">
            <transition name="slide-fade">
                <router-view keep-alive></router-view>
            </transition>
        </div>
    </div>
</template>

<script>
    import { mapActions, mapState } from 'vuex'
    export default {
        name: 'job',
        data() {
            return {
                isNavSel: true
            }
        },
        computed: mapState(['tempName', 'socketIobj']),
        filters: {
            ctimeFun: function (val) {
                var now = new Date(val)
                var year = now.getYear() - 100;
                var month = now.getMonth() + 1;
                month = month > 9 ? month : "0" + month
                var date = now.getDate();
                date = date > 9 ? date : "0" + date
                var hour = now.getHours();
                hour = hour > 9 ? hour : "0" + hour
                var minute = now.getMinutes();
                minute = minute > 9 ? minute : "0" + minute
                return "20" + year + "-" + month + "-" + date + "   " + hour + ":" + minute;
            },
            imgUrlFun: function (val) {
                console.log(val)
                return "http://192.168.1.189:9091/files" + val
            }
        },
        created: function () {

        },
        methods: {
        },
    }

</script>

<style scoped src="../../assets/css/job.css">

</style>